<html>
<head>
    <style>
        @page {
            size: 300px 500px;
            margin: 0;
        }
        body {
            max-width: 300px;
            margin: 0;
            padding: 0;
        }
    </style>
</head>
<body>
   <img src="../../demos/images/portrait-shuttle.jpg"
        width="640" height="975"
        style="max-width: 300px; max-height: 300px;"/>
</body>
</html>
